package org.note.law.module.word;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.lboot.jpa.entity.BaseEntity;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;
import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "law_word")
@ApiModel(value = "法律名词",description = "法律名词")
@EntityListeners(AuditingEntityListener.class)
public class LawWord extends BaseEntity implements Serializable {

    @ApiModelProperty(value = "名词")
    @Column(name = "word")
    String word;

    @ApiModelProperty(value = "具体内容")
    @Column(name = "content",columnDefinition = "TEXT")
    String content;

}
